<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of Perfil
 *
 * @author ETorres
 * 
 * @export Modules
 */
class Perfil extends Module {
    
    public function index() {
        /* @var $profile Estudiantes */
        $id = $this->request->get("Codigo", NULL);
                
        if($id != null){
            
            $profile = $this->model->students->GetById($id);
            
        }else{
            
            $id = $this->currentUser->getName();
            $profile = $this->model->students->GetById($id);
            
        }

        $this->assign("Profile", $profile);
        $this->display();
    }   
    
}

?>
